<?php
namespace Index\Controller;
use Think\Controller;

class CommonController extends Controller {

    public  function _initialize(){

    	if(isset($_POST['uid'])){
    		$uid = $_POST['uid'];
    		$_SESSION['uid']=$uid;
    	}

        if(!isset($_SESSION['uid'])){
            $this->error('还没有登录，请先登录再进行访问',U('Index/Login/index'),1);
        }

    }

}